package com.kl.feign.fallback;

import com.kl.domain.LogisticsStoreDTO;
import com.kl.domain.StaffDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.StaffServiceFeign;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class StaffServiceFeignFallback implements StaffServiceFeign {
    @Override
    public Result<StaffDTO> selectByStaffId(Long staffid) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<StaffDTO>> selectByPosition() {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<Long>> findSameCityStaff(List<Long> logList) {
        return Result.build(ConstantEnum.FaillBack);
    }
}
